Optimal. Leaf size=864 \[ \frac {2 (2 a+b \tan (d+e x)) \tan ^2(d+e x)}{\left (b^2-4 a c\right ) e \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}}-\frac {3 b \tanh ^{-1}\left (\frac {b+2 c \tan (d+e x)}{2 \sqrt {c} \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}}\right )}{2 c^{5/2} e}+\frac {\sqrt {2 a-2 c-\sqrt {a^2-2 c a+b^2+c^2}} \sqrt {a^2-2 c a-b^2+c^2+(a-c) \sqrt {a^2-2 c a+b^2+c^2}} \tanh ^{-1}\left (\frac {b^2-\left (2 a-2 c-\sqrt {a^2-2 c a+b^2+c^2}\right ) \tan (d+e x) b-(a-c) \left (a-c+\sqrt {a^2-2 c a+b^2+c^2}\right )}{\sqrt {2} \sqrt {2 a-2 c-\sqrt {a^2-2 c a+b^2+c^2}} \sqrt {a^2-2 c a-b^2+c^2+(a-c) \sqrt {a^2-2 c a+b^2+c^2}} \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}}\right )}{\sqrt {2} \left (a^2-2 c a+b^2+c^2\right )^{3/2} e}-\frac {\sqrt {2 a-2 c+\sqrt {a^2-2 c a+b^2+c^2}} \sqrt {a^2-2 c a-b^2+c^2-(a-c) \sqrt {a^2-2 c a+b^2+c^2}} \tanh ^{-1}\left (\frac {b^2-\left (2 a-2 c+\sqrt {a^2-2 c a+b^2+c^2}\right ) \tan (d+e x) b-(a-c) \left (a-c-\sqrt {a^2-2 c a+b^2+c^2}\right )}{\sqrt {2} \sqrt {2 a-2 c+\sqrt {a^2-2 c a+b^2+c^2}} \sqrt {a^2-2 c a-b^2+c^2-(a-c) \sqrt {a^2-2 c a+b^2+c^2}} \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}}\right )}{\sqrt {2} \left (a^2-2 c a+b^2+c^2\right )^{3/2} e}+\frac {\left (3 b^2-2 c \tan (d+e x) b-8 a c\right ) \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}}{c^2 \left (b^2-4 a c\right ) e}-\frac {2 (2 a+b \tan (d+e x))}{\left (b^2-4 a c\right ) e \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}}+\frac {2 \left (a \left (b^2-2 (a-c) c\right )+b c (a+c) \tan (d+e x)\right )}{\left (b^2+(a-c)^2\right ) \left (b^2-4 a c\right ) e \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 4.79, antiderivative size = 864, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 11, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3700, 6725, 636, 738, 779, 621, 206, 1018, 1036, 1030, 208} \[ \frac {2 (2 a+b \tan (d+e x)) \tan ^2(d+e x)}{\left (b^2-4 a c\right ) e \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}}-\frac {3 b \tanh ^{-1}\left (\frac {b+2 c \tan (d+e x)}{2 \sqrt {c} \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}}\right )}{2 c^{5/2} e}+\frac {\sqrt {2 a-2 c-\sqrt {a^2-2 c a+b^2+c^2}} \sqrt {a^2-2 c a-b^2+c^2+(a-c) \sqrt {a^2-2 c a+b^2+c^2}} \tanh ^{-1}\left (\frac {b^2-\left (2 a-2 c-\sqrt {a^2-2 c a+b^2+c^2}\right ) \tan (d+e x) b-(a-c) \left (a-c+\sqrt {a^2-2 c a+b^2+c^2}\right )}{\sqrt {2} \sqrt {2 a-2 c-\sqrt {a^2-2 c a+b^2+c^2}} \sqrt {a^2-2 c a-b^2+c^2+(a-c) \sqrt {a^2-2 c a+b^2+c^2}} \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}}\right )}{\sqrt {2} \left (a^2-2 c a+b^2+c^2\right )^{3/2} e}-\frac {\sqrt {2 a-2 c+\sqrt {a^2-2 c a+b^2+c^2}} \sqrt {a^2-2 c a-b^2+c^2-(a-c) \sqrt {a^2-2 c a+b^2+c^2}} \tanh ^{-1}\left (\frac {b^2-\left (2 a-2 c+\sqrt {a^2-2 c a+b^2+c^2}\right ) \tan (d+e x) b-(a-c) \left (a-c-\sqrt {a^2-2 c a+b^2+c^2}\right )}{\sqrt {2} \sqrt {2 a-2 c+\sqrt {a^2-2 c a+b^2+c^2}} \sqrt {a^2-2 c a-b^2+c^2-(a-c) \sqrt {a^2-2 c a+b^2+c^2}} \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}}\right )}{\sqrt {2} \left (a^2-2 c a+b^2+c^2\right )^{3/2} e}+\frac {\left (3 b^2-2 c \tan (d+e x) b-8 a c\right ) \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}}{c^2 \left (b^2-4 a c\right ) e}-\frac {2 (2 a+b \tan (d+e x))}{\left (b^2-4 a c\right ) e \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}}+\frac {2 \left (a \left (b^2-2 (a-c) c\right )+b c (a+c) \tan (d+e x)\right )}{\left (b^2+(a-c)^2\right ) \left (b^2-4 a c\right ) e \sqrt {c \tan ^2(d+e x)+b \tan (d+e x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 208
Rule 621
Rule 636
Rule 738
Rule 779
Rule 1018
Rule 1030
Rule 1036
Rule 3700
Rule 6725
Rubi steps
\begin {align*} \int \frac {\tan ^5(d+e x)}{\left (a+b \tan (d+e x)+c \tan ^2(d+e x)\right )^{3/2}} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {x^5}{\left (1+x^2\right ) \left (a+b x+c x^2\right )^{3/2}} \, dx,x,\tan (d+e x)\right )}{e}\\ &=\frac {\operatorname {Subst}\left (\int \left (-\frac {x}{\left (a+b x+c x^2\right )^{3/2}}+\frac {x^3}{\left (a+b x+c x^2\right )^{3/2}}+\frac {x}{\left (1+x^2\right ) \left (a+b x+c x^2\right )^{3/2}}\right ) \, dx,x,\tan (d+e x)\right )}{e}\\ &=-\frac {\operatorname {Subst}\left (\int \frac {x}{\left (a+b x+c x^2\right )^{3/2}} \, dx,x,\tan (d+e x)\right )}{e}+\frac {\operatorname {Subst}\left (\int \frac {x^3}{\left (a+b x+c x^2\right )^{3/2}} \, dx,x,\tan (d+e x)\right )}{e}+\frac {\operatorname {Subst}\left (\int \frac {x}{\left (1+x^2\right ) \left (a+b x+c x^2\right )^{3/2}} \, dx,x,\tan (d+e x)\right )}{e}\\ &=-\frac {2 (2 a+b \tan (d+e x))}{\left (b^2-4 a c\right ) e \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}+\frac {2 \tan ^2(d+e x) (2 a+b \tan (d+e x))}{\left (b^2-4 a c\right ) e \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}+\frac {2 \left (a \left (b^2-2 (a-c) c\right )+b c (a+c) \tan (d+e x)\right )}{\left (b^2+(a-c)^2\right ) \left (b^2-4 a c\right ) e \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}-\frac {2 \operatorname {Subst}\left (\int \frac {x (4 a+2 b x)}{\sqrt {a+b x+c x^2}} \, dx,x,\tan (d+e x)\right )}{\left (b^2-4 a c\right ) e}-\frac {2 \operatorname {Subst}\left (\int \frac {-\frac {1}{2} b \left (b^2-4 a c\right )-\frac {1}{2} (a-c) \left (b^2-4 a c\right ) x}{\left (1+x^2\right ) \sqrt {a+b x+c x^2}} \, dx,x,\tan (d+e x)\right )}{\left (b^2+(a-c)^2\right ) \left (b^2-4 a c\right ) e}\\ &=-\frac {2 (2 a+b \tan (d+e x))}{\left (b^2-4 a c\right ) e \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}+\frac {2 \tan ^2(d+e x) (2 a+b \tan (d+e x))}{\left (b^2-4 a c\right ) e \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}+\frac {2 \left (a \left (b^2-2 (a-c) c\right )+b c (a+c) \tan (d+e x)\right )}{\left (b^2+(a-c)^2\right ) \left (b^2-4 a c\right ) e \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}+\frac {\left (3 b^2-8 a c-2 b c \tan (d+e x)\right ) \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}{c^2 \left (b^2-4 a c\right ) e}-\frac {(3 b) \operatorname {Subst}\left (\int \frac {1}{\sqrt {a+b x+c x^2}} \, dx,x,\tan (d+e x)\right )}{2 c^2 e}+\frac {\operatorname {Subst}\left (\int \frac {\frac {1}{2} b \left (b^2-4 a c\right ) \left (2 a-2 c+\sqrt {a^2+b^2-2 a c+c^2}\right )+\frac {1}{2} \left (b^2-4 a c\right ) \left (b^2-(a-c) \left (a-c-\sqrt {a^2+b^2-2 a c+c^2}\right )\right ) x}{\left (1+x^2\right ) \sqrt {a+b x+c x^2}} \, dx,x,\tan (d+e x)\right )}{\left (b^2-4 a c\right ) \left (a^2+b^2-2 a c+c^2\right )^{3/2} e}-\frac {\operatorname {Subst}\left (\int \frac {\frac {1}{2} b \left (b^2-4 a c\right ) \left (2 a-2 c-\sqrt {a^2+b^2-2 a c+c^2}\right )+\frac {1}{2} \left (b^2-4 a c\right ) \left (b^2-(a-c) \left (a-c+\sqrt {a^2+b^2-2 a c+c^2}\right )\right ) x}{\left (1+x^2\right ) \sqrt {a+b x+c x^2}} \, dx,x,\tan (d+e x)\right )}{\left (b^2-4 a c\right ) \left (a^2+b^2-2 a c+c^2\right )^{3/2} e}\\ &=-\frac {2 (2 a+b \tan (d+e x))}{\left (b^2-4 a c\right ) e \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}+\frac {2 \tan ^2(d+e x) (2 a+b \tan (d+e x))}{\left (b^2-4 a c\right ) e \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}+\frac {2 \left (a \left (b^2-2 (a-c) c\right )+b c (a+c) \tan (d+e x)\right )}{\left (b^2+(a-c)^2\right ) \left (b^2-4 a c\right ) e \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}+\frac {\left (3 b^2-8 a c-2 b c \tan (d+e x)\right ) \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}{c^2 \left (b^2-4 a c\right ) e}-\frac {(3 b) \operatorname {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c \tan (d+e x)}{\sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}\right )}{c^2 e}-\frac {\left (b \left (b^2-4 a c\right ) \left (2 a-2 c+\sqrt {a^2+b^2-2 a c+c^2}\right ) \left (b^2-(a-c) \left (a-c-\sqrt {a^2+b^2-2 a c+c^2}\right )\right )\right ) \operatorname {Subst}\left (\int \frac {1}{\frac {1}{2} b \left (b^2-4 a c\right )^2 \left (2 a-2 c+\sqrt {a^2+b^2-2 a c+c^2}\right ) \left (b^2-(a-c) \left (a-c-\sqrt {a^2+b^2-2 a c+c^2}\right )\right )+b x^2} \, dx,x,\frac {\frac {1}{2} \left (b^2-4 a c\right ) \left (b^2-(a-c) \left (a-c-\sqrt {a^2+b^2-2 a c+c^2}\right )\right )-\frac {1}{2} b \left (b^2-4 a c\right ) \left (2 a-2 c+\sqrt {a^2+b^2-2 a c+c^2}\right ) \tan (d+e x)}{\sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}\right )}{2 \left (a^2+b^2-2 a c+c^2\right )^{3/2} e}+\frac {\left (b \left (b^2-4 a c\right ) \left (2 a-2 c-\sqrt {a^2+b^2-2 a c+c^2}\right ) \left (b^2-(a-c) \left (a-c+\sqrt {a^2+b^2-2 a c+c^2}\right )\right )\right ) \operatorname {Subst}\left (\int \frac {1}{\frac {1}{2} b \left (b^2-4 a c\right )^2 \left (2 a-2 c-\sqrt {a^2+b^2-2 a c+c^2}\right ) \left (b^2-(a-c) \left (a-c+\sqrt {a^2+b^2-2 a c+c^2}\right )\right )+b x^2} \, dx,x,\frac {\frac {1}{2} \left (b^2-4 a c\right ) \left (b^2-(a-c) \left (a-c+\sqrt {a^2+b^2-2 a c+c^2}\right )\right )-\frac {1}{2} b \left (b^2-4 a c\right ) \left (2 a-2 c-\sqrt {a^2+b^2-2 a c+c^2}\right ) \tan (d+e x)}{\sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}\right )}{2 \left (a^2+b^2-2 a c+c^2\right )^{3/2} e}\\ &=-\frac {3 b \tanh ^{-1}\left (\frac {b+2 c \tan (d+e x)}{2 \sqrt {c} \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}\right )}{2 c^{5/2} e}+\frac {\sqrt {2 a-2 c-\sqrt {a^2+b^2-2 a c+c^2}} \sqrt {a^2-b^2-2 a c+c^2+(a-c) \sqrt {a^2+b^2-2 a c+c^2}} \tanh ^{-1}\left (\frac {b^2-(a-c) \left (a-c+\sqrt {a^2+b^2-2 a c+c^2}\right )-b \left (2 a-2 c-\sqrt {a^2+b^2-2 a c+c^2}\right ) \tan (d+e x)}{\sqrt {2} \sqrt {2 a-2 c-\sqrt {a^2+b^2-2 a c+c^2}} \sqrt {a^2-b^2-2 a c+c^2+(a-c) \sqrt {a^2+b^2-2 a c+c^2}} \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}\right )}{\sqrt {2} \left (a^2+b^2-2 a c+c^2\right )^{3/2} e}-\frac {\sqrt {2 a-2 c+\sqrt {a^2+b^2-2 a c+c^2}} \sqrt {a^2-b^2+c \left (c+\sqrt {a^2+b^2-2 a c+c^2}\right )-a \left (2 c+\sqrt {a^2+b^2-2 a c+c^2}\right )} \tanh ^{-1}\left (\frac {b^2-(a-c) \left (a-c-\sqrt {a^2+b^2-2 a c+c^2}\right )-b \left (2 a-2 c+\sqrt {a^2+b^2-2 a c+c^2}\right ) \tan (d+e x)}{\sqrt {2} \sqrt {2 a-2 c+\sqrt {a^2+b^2-2 a c+c^2}} \sqrt {a^2-b^2-2 a c+c^2-(a-c) \sqrt {a^2+b^2-2 a c+c^2}} \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}\right )}{\sqrt {2} \left (a^2+b^2-2 a c+c^2\right )^{3/2} e}-\frac {2 (2 a+b \tan (d+e x))}{\left (b^2-4 a c\right ) e \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}+\frac {2 \tan ^2(d+e x) (2 a+b \tan (d+e x))}{\left (b^2-4 a c\right ) e \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}+\frac {2 \left (a \left (b^2-2 (a-c) c\right )+b c (a+c) \tan (d+e x)\right )}{\left (b^2+(a-c)^2\right ) \left (b^2-4 a c\right ) e \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}+\frac {\left (3 b^2-8 a c-2 b c \tan (d+e x)\right ) \sqrt {a+b \tan (d+e x)+c \tan ^2(d+e x)}}{c^2 \left (b^2-4 a c\right ) e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 21.30, size = 611, normalized size = 0.71 \[ \frac {\sqrt {\frac {a \cos (2 (d+e x))+a+b \sin (2 (d+e x))-c \cos (2 (d+e x))+c}{\cos (2 (d+e x))+1}} \left (\frac {8 a^4 c-3 a^3 b^2-16 a^3 c^2+15 a^2 b^2 c+12 a^2 c^3-3 a b^4-7 a b^2 c^2-4 a c^4+b^4 c+b^2 c^3}{c^2 (a-c) (a-i b-c) (a+i b-c) \left (4 a c-b^2\right )}-\frac {2 \left (-a^4 b \sin (2 (d+e x))+4 a^4 c-2 a^3 b^2+6 a^3 b c \sin (2 (d+e x))-4 a^3 c^2-2 a^2 b^3 \sin (2 (d+e x))+8 a^2 b^2 c-5 a^2 b c^2 \sin (2 (d+e x))-2 a b^4+5 a b^3 c \sin (2 (d+e x))+b^5 (-\sin (2 (d+e x)))\right )}{c (a-c) (a-i b-c) (a+i b-c) \left (4 a c-b^2\right ) (a \cos (2 (d+e x))+a+b \sin (2 (d+e x))-c \cos (2 (d+e x))+c)}\right )}{e}+\frac {-\frac {3 b \tanh ^{-1}\left (\frac {b+2 c \tan (d+e x)}{2 \sqrt {c} \sqrt {a+\tan (d+e x) (b+c \tan (d+e x))}}\right )}{c^{5/2}}-\frac {\tanh ^{-1}\left (\frac {2 a+(b-2 i c) \tan (d+e x)-i b}{2 \sqrt {a-i b-c} \sqrt {a+\tan (d+e x) (b+c \tan (d+e x))}}\right )}{(a-i b-c)^{3/2}}-\frac {\tanh ^{-1}\left (\frac {2 a+(b+2 i c) \tan (d+e x)+i b}{2 \sqrt {a+i b-c} \sqrt {a+\tan (d+e x) (b+c \tan (d+e x))}}\right )}{(a+i b-c)^{3/2}}}{2 e} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.89, size = 13066795, normalized size = 15123.61 \[ \text {output too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\mathrm {tan}\left (d+e\,x\right )}^5}{{\left (c\,{\mathrm {tan}\left (d+e\,x\right )}^2+b\,\mathrm {tan}\left (d+e\,x\right )+a\right )}^{3/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tan ^{5}{\left (d + e x \right )}}{\left (a + b \tan {\left (d + e x \right )} + c \tan ^{2}{\left (d + e x \right )}\right )^{\frac {3}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________